package com.csxy.six.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.csxy.six.entity.Signin;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface SigninMapper extends BaseMapper<Signin> {
    @Select("SELECT * FROM activity_signin WHERE user_id = #{userId} AND activity_id = #{activityId}")
    Signin selectByUserAndActivity(
            @Param("userId") Long userId,
            @Param("activityId") Long activityId
    );
}